Don't scan uncompressed_objects_dir if it doesn't exist
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 11 Apr 2018 22:06:39 +0000 (18:06 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 12 Apr 2018 13:53:15 +0000 (13:53 +0000)
commit9199237b01687e1e0842f3926fd01b695014df2b
tree570a117fcd02cc321128ef76869b40c9eac390d8
parentb9fc3eaa154774531ae66835387615bb7a650bf2
Don't scan uncompressed_objects_dir if it doesn't exist

A newly created archive-mode repository won't have a uncompressed-objects-cache
directory, and uncompressed_objects_dir is -1 to flag that. The special meaning of
-1 meaning "cwd" for libglnx means that the current directory was scanned as
if it was an objects directory, producing unexpected results, especially if there
were any two-letter files/subdirs in the current directory.

Closes: #1537
Approved by: jlebon
src/libostree/ostree-repo-commit.c